package com.morn.weibo.types;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class UserAccount implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1523974715551959490L;

	@DatabaseField
	private Integer id;

	@DatabaseField
	private String userName;

	@DatabaseField
	private String userPassword;

	@DatabaseField(columnName = "user_id", foreign = true)
	private User user;

	public UserAccount() {

	}

	public UserAccount(String userName, String userPassword) {
		super();
		this.userName = userName;
		this.userPassword = userPassword;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "UserAccount [id=" + id + ", userName=" + userName
				+ ", userPassword=" + userPassword + "]";
	}

}
